package com.youpingou.service.impl;

import com.youpingou.domain.Brand;
import com.youpingou.mapper.BrandMapper;
import com.youpingou.service.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class BrandServiceImpl implements BrandService {

    @Autowired
    private BrandMapper brandMapper;
    /**
     * 根据分类的id查找品牌数据
     * @param cat3id
     * @return
     */
    @Override
    public List<Brand> findBrandByCat3Id(Integer cat3id) {
        return brandMapper.findBrandByCat3id(cat3id);
    }
}
